
var http = require('http');
var http = require('http');
var fs = require('fs');

http.createServer(function (request, response) {
  fs.readFile('./dist/index.html', 'utf8', (err,data) =>{
    response.writeHead(200,{'Content-Type':'text/html'});
    if (!err) {
      response.write(data);
      response.end(data);
    }else {
      response.end('html not found');
    }
});
}).listen(3000);
